package dao.admin.impl;

import dao.BaseDao;
import dao.admin.CardEditDao;
import entity.Borrow_card;

/**
 * CardEditDaoImpl
 *
 * @author lenovo
 * @since 2023/9/5
 */
public class CardEditDaoImpl extends BaseDao implements CardEditDao {
    @Override
    public int update(Borrow_card card) {
        String sql = "update borrow_card set password=?, reader=?, rule_id=?, status=? where id=?";

        return executeUpdate(sql,card.getPassword(),card.getReader(),card.getRule_id(),card.getStatus(),card.getId());
    }
}
